package com.dc.spring.init;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

public class MyApplicationListener1 implements ApplicationListener<ContextClosedEvent> {
    Logger logger = LoggerFactory.getLogger(this.getClass().getName()) ;
    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        logger.info("myStart ContextClosedEvent init");
    }
}
